import { AxiosRequestConfig, AxiosResponse } from 'axios'

interface HYRequestInterceptors {
  requestInterceptors?: (config: AxiosRequestConfig) => AxiosRequestConfig
  requestInterceptorsCatch?: (err: any) => any
  responseInterceptors?: (res: AxiosResponse) => AxiosResponse
  responseInterceptorsCatch?: (err: any) => any
}

interface HYConfig extends AxiosRequestConfig {
  interceptors?: HYRequestInterceptors
}

export { HYConfig, HYRequestInterceptors }
